package com.gtm.model;

import com.mongodb.DBObject;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.persistence.Id;
import javax.persistence.Version;
import java.util.Date;
import java.util.List;

/**
 * Created by 骆清波 on 2017/11/16.
 */
@Document(collection = "assignment")
public class Assignment {
    @Id
    private String id;
    private List<DBObject> taskList;
    private List<DBObject> stuList;
    private String teacherId;
    private String teacherName;
    private String topicId;
    private String topicName;
    @Version
    private String version;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public List<DBObject> getTaskList() {
        return taskList;
    }

    public void setTaskList(List<DBObject> taskList) {
        this.taskList = taskList;
    }

    public String getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(String teacherId) {
        this.teacherId = teacherId;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public String getTopicId() {
        return topicId;
    }

    public void setTopicId(String topicId) {
        this.topicId = topicId;
    }

    public String getTopicName() {
        return topicName;
    }

    public void setTopicName(String topicName) {
        this.topicName = topicName;
    }

    public List<DBObject> getStuList() {
        return stuList;
    }

    public void setStuList(List<DBObject> stuList) {
        this.stuList = stuList;
    }
}
